package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_SYS_RESLINK"
 *     
*/
public class CcpSysReslink implements Serializable {

    /** identifier field */
    private String rslGuid;

    /** persistent field */
    private String rslParent;

    /** persistent field */
    private String rslChild;

    /** full constructor */
    public CcpSysReslink(String rslGuid, String rslParent, String rslChild) {
        this.rslGuid = rslGuid;
        this.rslParent = rslParent;
        this.rslChild = rslChild;
    }

    /** default constructor */
    public CcpSysReslink() {
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="RSL_GUID"
     *         
     */
    public String getRslGuid() {
        return this.rslGuid;
    }

    public void setRslGuid(String rslGuid) {
        this.rslGuid = rslGuid;
    }

    /** 
     *            @hibernate.property
     *             column="RSL_PARENT"
     *             length="32"
     *             not-null="true"
     *         
     */
    public String getRslParent() {
        return this.rslParent;
    }

    public void setRslParent(String rslParent) {
        this.rslParent = rslParent;
    }

    /** 
     *            @hibernate.property
     *             column="RSL_CHILD"
     *             length="32"
     *             not-null="true"
     *         
     */
    public String getRslChild() {
        return this.rslChild;
    }

    public void setRslChild(String rslChild) {
        this.rslChild = rslChild;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("rslGuid", getRslGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpSysReslink) ) return false;
        CcpSysReslink castOther = (CcpSysReslink) other;
        return new EqualsBuilder()
            .append(this.getRslGuid(), castOther.getRslGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getRslGuid())
            .toHashCode();
    }

}
